package com.tcd.outRisk.service.impl;

import com.tcd.outRisk.entity.CaseReportInfo;
import com.tcd.outRisk.mapper.CaseReportInfoMapper;
import com.tcd.outRisk.service.CaseReportInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * <p>
 * 报案信息表 服务实现类
 * </p>
 *
 * @author Jarle
 * @since 2021-05-22
 */
@Service
public class CaseReportInfoServiceImpl extends ServiceImpl<CaseReportInfoMapper, CaseReportInfo> implements CaseReportInfoService {
    @Autowired
    CaseReportInfoMapper mapper;

    public String num(String carnumber, String caseid) {
        return mapper.num(carnumber, caseid);
    }

    @Override
    public int morenumber(String carnumber) {
        return mapper.Morenum(carnumber);
    }

    @Override
    public List<CaseReportInfo> Caseall() {
        return mapper.Caseall();
    }

    @Override
    public boolean CaseReportInfoupdaetstatus(String CasereportId, String reporttodealwith) {
        return mapper.CaseReportInfoupdaetstatus(CasereportId, reporttodealwith);
    }

    @Override
    public List<CaseReportInfo> Caselist(int page, int pagesize) {
        return mapper.Caselist(page, pagesize);
    }

    @Override
    public CaseReportInfo claimone(String claimid) {
        return mapper.claimone(claimid);
    }
}
